﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using cn.Util;
using yq.IBase.Basis;
using Newtonsoft.Json;

namespace yq.Model.Logic
{
    /// <summary>
    /// Log_User - 用户登录统计 - 对象继承类
    /// </summary>
    [Table("Log_User")]
    public class LogUser : ModelBase<LogUser>
    {

        /// <summary>
        /// 为本对象赋值
        /// </summary>
        /// <param name="dy"></param>
        public override void SetValue(dynamic dy)
        {
            this.LogId = dy.LogId;
            this.UserId = dy.UserId;
            this.LogTime = dy.LogTime;
            this.Ip = dy.Ip;
            this.Other = dy.Other;
        }

        /// <summary>
        /// logid
        /// </summary>
        private String _LogId = "";

        /// <summary>
        /// logid
        /// </summary>
        [FromDb("LogId", true)]
        public String LogId
        {
            get
            {
                return (this._LogId);
            }

            set
            {
                _LogId = value;
            }
        }


        /// <summary>
        /// 账号
        /// </summary>
        private String _UserId = "";

        /// <summary>
        /// 账号
        /// </summary>
        [FromDb]
        public String UserId
        {
            get
            {
                return (this._UserId);
            }

            set
            {
                _UserId = value;
            }
        }

        /// <summary>
        /// 登录时间
        /// </summary>
        private DateTime _LogTime = DateTime.MinValue;

        /// <summary>
        /// 登录时间
        /// </summary>
        [FromDb]
        public DateTime LogTime
        {
            get
            {
                return (this._LogTime);
            }

            set
            {
                _LogTime = value;
            }
        }


        /// <summary>
        /// 登录IP
        /// </summary>
        private String _Ip = "";

        /// <summary>
        /// 登录IP
        /// </summary>
        [FromDb]
        public String Ip
        {
            get
            {
                return (this._Ip);
            }

            set
            {
                _Ip = value;
            }
        }


        /// <summary>
        /// 其他信息
        /// </summary>
        private String _Other = "";

        /// <summary>
        /// 其他信息
        /// </summary>
        [FromDb]
        public String Other
        {
            get
            {
                return (this._Other);
            }

            set
            {
                _Other = value;
            }
        }



    }
}
